package org.dl.gjz.menyj.task.service.jc;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;

public class ReserveRepairService implements JavaDelegate {

    @Override
    public void execute(DelegateExecution execution) throws Exception {
        String homer = (String)execution.getVariable("homer");
        System.out.println("开始预约维修, 预约人：" + homer);
        // currentActivityName
        String currentActivityName = execution.getCurrentActivityName();
        String processDefinitionId = execution.getProcessDefinitionId();
        System.out.println("当前活动名称：" + currentActivityName + "流程定义ID：" + processDefinitionId);
    }
}
